print("{0:=^50}".format("欢迎您注册"))
user_id=input('请输入您的ID：')
if len(user_id)<9 :
    for i in user_id:
        if (ord('0')<=ord(i)<=ord('9')) | (ord('a')<=ord(i)<=ord('z')) | (ord('_')==ord(i)):
            continue
        else:
            sys.exit(0)

email=(input("请输入邮箱："))
str1=email[0:email.find('@')]
str2=email[email.find('@')+1:email.find('.')]
str3=email[email.find('.')+1:len(email)]
print(str1)
print(str2)
print(str3)

for i in str1:
    if (ord('0') <= ord(i) <= ord('9'))|(ord('a') <= ord(i) <= ord('z'))|(ord('_')==ord(i)):
        continue
    else:
        print("输入格式有误")
        sys.exit(0)

    
for i in str2:
    if (ord('0') <= ord(i) <= ord('9'))|(ord('a') <= ord(i) <= ord('z')):
        continue
    else:
        print("输入格式有误")
        sys.exit(0)
for i in str3:
    if (ord('a') <= ord(i) <= ord('z')):
        continue
    else:
        print("输入格式有误")
        sys.exit(0)

num=input("请输入身份证号：")

if (len(num)!=18):
    sys.exit(0)

num=input('请输入您的身份证号码：')
if len(num)==18 :
    for i in user_id:
        if (ord('0')<=ord(i)<=ord('9')):
            print("ok")
else :
    print('nook')
name=input('请输入您的姓名：')



